<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>column实现瀑布流布局</title>

		<style>
			* {
				padding: 0;
				margin: 0;
			}

			.container {
				margin: 10px;
				/* 分成3列 */
				column-count: 3;
				/* 每列的距离 */
				column-gap: 10px;
				box-sizing: border-box;
			}

			.item {
				margin-bottom: 20px;
				width: 200px;
			}

			.item .IU {
				width: 100%;
				height: 100%;
			}
		</style>
	</head>

	<body>
		<div class="container">
			<div class="item">
				<img src="../assets/IU1.png" class="IU" />
			</div>
			<div class="item">
				<img src="../assets/IU2.png" class="IU" />
			</div>
			<div class="item">
				<img src="../assets/IU3.png" class="IU" />
			</div>
			<div class="item">
				<img src="../assets/IU1.png" class="IU" />
			</div>
			<div class="item">
				<img src="../assets/IU2.png" class="IU" />
			</div>
			<div class="item">
				<img src="../assets/IU3.png" class="IU" />
			</div>
			<div class="item">
				<img src="../assets/IU1.png" class="IU" />
			</div>
			<div class="item">
				<img src="../assets/IU2.png" class="IU" />
			</div>
			<div class="item">
				<img src="../assets/IU3.png" class="IU" />
			</div>
			<div class="item">
				<img src="../assets/IU1.png" class="IU" />
			</div>
			<div class="item">
				<img src="../assets/IU2.png" class="IU" />
			</div>
			<div class="item">
				<img src="../assets/IU3.png" class="IU" />
			</div>
			<div class="item">
				<img src="../assets/IU1.png" class="IU" />
			</div>
			<div class="item">
				<img src="../assets/IU2.png" class="IU" />
			</div>
			<div class="item">
				<img src="../assets/IU3.png" class="IU" />
			</div>
		</div>
	</body>
</html>
